package ar.diegodob.charcas.ui.modules.server;

import ar.diegodob.charcas.model.exceptions.CharcasException;
import ar.diegodob.charcas.model.player.PlayerManager;
import ar.diegodob.charcas.ui.modules.client.PlayerService;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class PlayerServiceImpl extends RemoteServiceServlet implements
		PlayerService {

	public void play(String name) throws Exception {
		try {
			PlayerManager.getInstance().play(name);
		} catch (Exception e) {
			new Exception(e);
		}
	}

	public void stop() throws Exception {
		try {
			PlayerManager.getInstance().stop();
		} catch (Exception e) {
			new Exception(e);
		}

	}

}
